package com.wn.class30.entity;

import java.io.Serializable;

/**
 * comment_img
 * @author 
 */
public class CommentImg implements Serializable {
    /**
     * 评论图片ID
     */
    private Integer commentImgId;

    /**
     * 评论图片路径
     */
    private String commentImgSrc;

    private Integer commentId;

    private static final long serialVersionUID = 1L;

    public Integer getCommentImgId() {
        return commentImgId;
    }

    public void setCommentImgId(Integer commentImgId) {
        this.commentImgId = commentImgId;
    }

    public String getCommentImgSrc() {
        return commentImgSrc;
    }

    public void setCommentImgSrc(String commentImgSrc) {
        this.commentImgSrc = commentImgSrc;
    }

    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CommentImg other = (CommentImg) that;
        return (this.getCommentImgId() == null ? other.getCommentImgId() == null : this.getCommentImgId().equals(other.getCommentImgId()))
            && (this.getCommentImgSrc() == null ? other.getCommentImgSrc() == null : this.getCommentImgSrc().equals(other.getCommentImgSrc()))
            && (this.getCommentId() == null ? other.getCommentId() == null : this.getCommentId().equals(other.getCommentId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCommentImgId() == null) ? 0 : getCommentImgId().hashCode());
        result = prime * result + ((getCommentImgSrc() == null) ? 0 : getCommentImgSrc().hashCode());
        result = prime * result + ((getCommentId() == null) ? 0 : getCommentId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", commentImgId=").append(commentImgId);
        sb.append(", commentImgSrc=").append(commentImgSrc);
        sb.append(", commentId=").append(commentId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}